#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long n, sum = 1;
	cin>>n;
	for(int i = 2;i <= sqrt(n);++i)
		if(n%i == 0)
			sum += i+n/i;
	if(sqrt(n)*sqrt(n) == n)
		sum -= sqrt(n);
			
	if(sum > n)
		cout<<"Abundant";
	else if(sum < n)
		cout<<"Deficient";
	else
		cout<<"Perfect";
	return 0;
}

